package com.example.futureai.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import org.json.JSONObject;

/**
 * @InterfaceName: RedisService
 * @Description:
 * @Author: 何荣
 * @Date: 2025/2/24
 */
public interface RedisService {
    boolean hasKey(String s);


    void setObject(String key, String value, long time);

    void setObject(String s, JSONObject docJson) throws JsonProcessingException;

    //redis持久化本地
    void save();

    void setObjectRdb(String key, JSONObject docJson);


    String get(String key);
}
